{include file="public_head" /}

<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            分销记录
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>shop</small>-->
                                </h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="get" action="">

                                    <div class="title_left">
                                            <!--<div class="input-group  col-md-2 col-sm-3 col-xs-4" style="float: left;margin: 0 2%;">-->

                                                <!--<select name="status" class="select2_single" style="width: 100%;"-->
                                                        <!--tabindex="-1">-->
                                                    <!--<option value="0">- 请选择审核状态 -</option>-->
                                                    <!--<option value="1" {eq name=':input("status")' value='1' }selected{/eq}>审核通过</option>-->
                                                    <!--<option value="2" {eq name=':input("status")' value='2' }selected{/eq}>审核未通过</option>-->
                                                    <!--<option value="3" {eq name=':input("status")' value='3' }selected{/eq}>等待审核</option>-->
                                                <!--</select>-->
                                            <!--</div>-->
                                        <div class="col-md-2 col-sm-3 col-xs-3 form-group pull-left top_search">
                                            <div class="input-group">
                                                <input type="text" class="form-control" name="title"
                                                       placeholder="输入分销会员用户名..." value="{:input('title')}">
                                            </div>
                                        </div>
                                        <button type="submit" class="btn btn-primary" style="margin-left: 10px;">搜 索
                                        </button>
                                    </div>

                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr>
                                            <th>分销会员 / ID</th>
                                            <th>分销类型</th>
                                            <th>分销金额</th>
                                            <th>订单金额</th>
                                            <th>下单时间</th>

                                            <th>下单会员 / ID</th>
                                            <th>订单号</th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        {empty name="data"}
                                        <tr><td colspan="7"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr><td>{$item.a_name} / {$item.member_id}</td>
                                            <td>{$item.type}</td>
                                            <td>{$item.price}</td>
                                            <td>{$item.order_price}</td>
                                            <td>{$item.create_time}</td>
                                            <td>{$item.u_name} / {$item.o_member_id}</td>
                                            <td>{$item.shop_order_number}</td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                    </table>
                                    <!-- 分页 -->
                                    <div style="float: right;margin-top: -30px;">{$data->render()}</div>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}

<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<script type="text/javascript">
    // list
    $(document).ready(function () {
        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });
    });
</script>
